package org.zl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zl.mapper.UserInfoMapper;
import org.zl.pojo.UserInfo;
import org.zl.service.UserInfoService;

import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> findAll() {
        return userInfoMapper.findAll();
    }

    @Override
    public UserInfo checkLogin(String userid, String password) {
        return userInfoMapper.checkLogin(userid,password);
    }

    @Override
    public void updatePassword(UserInfo user) {
        userInfoMapper.updatePassword(user);
    }
}
